<form name="editForm2">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请岗位：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select id="roleId2"
						name="roleId"
						class="form-control" 
						ng-model="editModel2.request.roleId">
                        <option ng-repeat="role in viewModel.roleList" value="{{role.roleId}}" ng-selected="editModel2.selected(role)">{{role.roleName}}--({{role.departmentCode}}){{role.departmentName}}</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item">	 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>	
            <div class="col-lg-3 col-md-3 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm2.startDate.$dirty && editForm2.startDate.$invalid }">
					<input name="startDate" 
						   ng-model="editModel2.request.startDate" 
						   ng-change="editModel2.dateChange(true);editModel2.getAttendanceStartDate()"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel2.editStartDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel2.editStartDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
            <div class="col-sm-5 col-md-5 form-title" style="text-align: left;">
            	上班签到：{{editModel2.startOriginalStartTime}}
           	    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           	       末班签退：{{editModel2.startOriginalEndTime}}
            </div>
        </div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm2.bStartTime.$dirty && editForm2.bStartTime.$invalid}">
					<input id="bStartTime2"
						   name="bStartTime" 
				 		   class="form-control" 
				 		   ng-change="editModel2.dateChange(true)"
				 		   ng-click="editModel2.startTimeClick()"
				 		   ng-model="editModel2.request.startTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   data-autoclose="true"
				 		   required>   
				</div>	   
			</div>
		</div>
		<div class="col-md-12 form-item" 
			ng-show="editModel2.startToTimeShow == 0"
			ng-hide="editModel2.startToTimeShow != 0">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>至：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm2.bStartToTime.$dirty && editForm2.bStartToTime.$invalid}">
					<input id="bStartToTime2"
						   name="bStartToTime" 
				 		   class="form-control" 
				 		   ng-change="editModel2.dateChange(true)"
				 		   ng-click="editModel2.startToTimeClick()"
				 		   ng-model="editModel2.request.startToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   data-autoclose="true"
				 		   maxLength="5"
				 		   required>    
				</div>	   
			</div>
		</div>
           <div class="col-md-12 form-item">
           	<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
            <div class="col-lg-3 col-md-3 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm2.endDate.$dirty && editForm2.endDate.$invalid }">
					<input name="endDate" 
						   ng-model="editModel2.request.endDate" 
						   ng-change="editModel2.dateChange(true);editModel2.getAttendanceEndDate()"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel2.editEndDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel2.editEndDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
            <div class="col-sm-5 col-md-5 form-title" style="text-align: left;">
            	上班签到：{{editModel2.endOriginalStartTime}}
           	    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           	       末班签退：{{editModel2.endOriginalEndTime}}
            </div>
           </div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' :  editForm2.bEndTime.$dirty && editForm2.bEndTime.$invalid}">
				    <input id="bEndTime2"
				    	name="bEndTime" 
				    	ng-change="editModel2.dateChange(true)"
				    	ng-click="editModel2.endTimeClick()"
				 		class="form-control" 
				 		ng-model="editModel2.request.endTime" 
				 		maxLength="5"
				 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		data-autoclose="true"
				 		required>
				</div>	   
			</div>
		</div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">出差时长：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input id="bhours2"
			 		   name="bhours" 
			 		   class="form-control" 
			 		   ng-model="editModel2.hours" 
			 		   disabled="disabled"> 
			</div>
		</div>
        <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请说明：</div>
			<div class="col-sm-8 col-md-8 form-input"
				ng-class="{ 'has-error' :  editForm2.description.$dirty && editForm2.description.$invalid}">
			 	<textarea name="description" 
			 		   class="form-control" 
			 		   ng-model="editModel2.request.description" 
			 		   maxLength="255"
			 		   rows="3"
			 		   required>
			 	</textarea>
			</div>
		</div>
		
	</div>	
</form>
